from agno.agent import Agent
from agno.models.openai import OpenAILike
from agno.tools.crawl4ai import Crawl4aiTools
from configs.basic_config import ALI_GENERATION_MODEL, AGENT_URL, ALI_DASHSCOPE_API_KEY

# playwright 有问题 mac版本问题
agent = Agent(
            model=OpenAILike(id=ALI_GENERATION_MODEL, name=ALI_GENERATION_MODEL, api_key=ALI_DASHSCOPE_API_KEY,
                     base_url=AGENT_URL),
            tools=[Crawl4aiTools(max_length=None)]
        )
agent.print_response("告诉我关于这个链接的内容： https://www.agno.com.")